From 74bcc224ed6c57184b12a7e79b61da690dafa2fd Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 8 Feb 2006 00:30:50 +0100 Subject: [PATCH] /sbin/udev no longer exists in upstream udev, so use udevinfo for version info. Signed-off-by: Jeremy Katz --- tools/examples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/examples/Makefile b/tools/examples/Makefile index a94ea7aa0a..eead30d7c0 100644 --- a/tools/examples/Makefile +++ b/tools/examples/Makefile @@ -42,7 +42,7 @@ DE = $(shell readlink -f $(DESTDIR)) ifeq ($(findstring $(DI),$(DE)),$(DI)) HOTPLUGS=install-hotplug install-udev else -ifeq ($(shell [ -x /sbin/udev ] && [ ! -z `/sbin/udev -V` ] && [ `/sbin/udev -V` -ge 059 ] && echo 1),1) +ifeq ($(shell [ -x /usr/bin/udevinfo ] && [ `/usr/bin/udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/'` -ge 059 ] && echo 1),1) HOTPLUGS=install-udev else HOTPLUGS=install-hotplug -- 2.30.2